<!DOCTYPE html>
<html>
<head>
<include file="Include:meta" />
<title>首页-目的地运营集团数据管理平台</title>
<include file="Include:style" />
<link type="text/css" rel="stylesheet" href="__PUBLIC__/css/swiper.min.css" />
</head>
<body>
<include file="Include:header" />
<include file="Include:left" />
<div id="main">
	<div class="crumbs">
		<div class="notice_box">
			<if condition="$share eq NULL and $alert eq NULL"><i class="fa fa-bell-o"></i><else/><i class="fa fa-bell"><span>{$count}</span></i></if>
			<div class="swiper-container">
				<div class="swiper-wrapper">
					<foreach name="share" item="so">
						<div class="swiper-slide"><if condition="$so['folder_name'] eq NULL">文件：<a href="__APP__/Index/library_detail/id/{$so['mid']}/sid/{$so['id']}/classif/{$so['classif']}/type/{$so['folder_type']}/go/1">{$so['name']}</a><else/>文件夹：<a href="__APP__/Index/index_more/action/share/typ/2/id/{$so['id']}" target="_blank">{$so['folder_name']}</a></if></div>
					</foreach>
					<foreach name="alert" item="so">
						<div class="swiper-slide">提醒：<a href="__APP__/System/message_list/id/{$so['id']}" target="_blank">{$so['remark']}</a></div>
					</foreach>
				</div>
			</div>
			<a class="more" href="__APP__/Index/index_more/action/share/typ/2/rstatus/2" target="_blank" data-toggle="tooltip" data-placement="left" title="更多"><i class="glyphicon glyphicon-new-window ml5"></i></a>
		</div>
	</div>
	<div id="content" class="clearboth">
		<div class="index_notice">
			<div class="index_title">
				公告<if condition="$notice_list neq NULL"><a class="right" href="__APP__/System/notice_list" target="_blank" data-toggle="tooltip" data-placement="left" title="更多"><i class="glyphicon glyphicon-new-window ml5"></i></a></if>
			</div>
			<table class="table table-bordered table-hover mb10">
				<tbody>
					<tr class="table-header fixed-table-header">
						<td>标题</td>
						<td width="100">评论/回复</td>
						<td width="140">添加人(日期)</td>
					</tr>
					<if condition="$notice_list eq NULL">
					<tr><td class="Text_c" colspan="3">暂无相关数据</td></tr>
					</if>
					<foreach name="notice_list" item="no">
					<tr class="notice_first">
						<td><div style="position:relative"><a href="__APP__/System/notice_list_details/id/{$no['id']}">{$no['title']}</a><div class="click_box"></div></div></td>
						<td>{$no['ask_count']}/{$no['answer_count']}</td>
						<td>{$no['add_user']}({$no['add_date']|substr=0,10})</td>
					</tr>
					<tr <if condition="$no['first'] neq 1">class="hide det"<else/>class="det"</if>>
						<td colspan="3">
							<div class="notice_first_txt">
								{$no['content']}
							</div>
						</td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="index_title">
				我参与的项目<if condition="$my_project neq NULL"><a class="right" href="__APP__/Index/my_project" target="_blank" data-toggle="tooltip" data-placement="left" title="更多"><i class="glyphicon glyphicon-new-window ml5"></i></a></if>
			</div>
			<table class="table table-bordered table-hover">
				<tbody>
					<tr class="table-header fixed-table-header">
						<td width="100">项目编号</td>
						<td>项目名称</td>
						<td width="140">启动日期</td>
					</tr>
					<if condition="$my_project eq NULL">
					<tr><td class="Text_c" colspan="3">暂无相关数据</td></tr>
					</if>
					<foreach name="my_project" item="mo">
					<tr>
						<td><a href="__APP__/Project/project_situation/id/{$mo['id']}" target="_blank">{$mo['project_num']}</a></td>
						<td>{$mo['project_name']}</td>
						<td>{$mo['start_date']}</td>
					</tr>
					</foreach>
				</tbody>
			</table>
		</div>
		<div class="index_right">
			<div class="index_title">
				搜库推荐<if condition="$top neq NULL"><a class="right" href="__APP__/Index/index_more/action/top" target="_blank" data-toggle="tooltip" data-placement="left" title="更多"><i class="glyphicon glyphicon-new-window ml5"></i></a></if>
			</div>
			<table class="table table-bordered table-hover mb10">
				<tbody>
					<tr class="table-header fixed-table-header">
						<td width="130">标题</td>
						<td>库名</td>
						<td>日期</td>
					</tr>
					<if condition="$top eq NULL">
					<tr><td class="Text_c" colspan="3">暂无相关数据</td></tr>
					</if>
					<foreach name="top" item="to">
					<tr>
						<td><a href="__APP__/Index/library_detail/id/{$to['id']}/classif/{$to['classif']}/type/{$to['type']}"><if condition="$to['name_str'] gt 8">{:msubstr($to['name'],0,8)}<else/>{$to['name']}</if></a></td>
						<td>{$to['type_name']}</td>
						<td>{$to['add_date']|substr=0,10}</td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="index_title">
				收藏夹<if condition="$collection neq NULL"><a class="right" href="__APP__/Index/index_more/action/collection" target="_blank" data-toggle="tooltip" data-placement="left" title="更多"><i class="glyphicon glyphicon-new-window ml5"></i></a></if>
			</div>
			<table class="table table-bordered table-hover mb10">
				<tbody>
					<tr class="table-header fixed-table-header">
						<td width="130">标题</td>
						<td>库名</td>
						<td>日期</td>
					</tr>
					<if condition="$collection eq NULL">
					<tr><td class="Text_c" colspan="3">暂无相关数据</td></tr>
					</if>
					<foreach name="collection" item="co">
					<tr>
						<td><a href="__APP__/Index/library_detail/id/{$co['id']}/classif/{$co['classif']}/type/{$co['type']}"><if condition="$co['name_str'] gt 8">{:msubstr($co['name'],0,8)}<else/>{$co['name']}</if></a></td>
						<td>{$co['type_name']}</td>
						<td>{$co['add_date']|substr=0,10}</td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="index_title">
				微信服务号
			</div>
			<div class="clearboth">
				<img src="__PUBLIC__/images/code.png" alt="">
			</div>
		</div>
	</div>
</div>
<include file="Include:javascript" />
<script type="text/javascript" src="__PUBLIC__/js/swiper.min.js"></script>
<script type="text/javascript">
$(function(){
	resize();
	$(window).resize(function(){
		resize();
	})
	function resize(){
		$('.index_notice').width($(window).width()-430);
	}
	$('.click_box').click(function(){
		$(this).parents('tr').next('tr').show().siblings('.det').hide();
	})
	var swiper = new Swiper('.swiper-container', {
        direction: 'vertical',
        mousewheel: true,
		autoplay: {
			delay: 2500,
			disableOnInteraction: false,
		},
		loop:true
    });
});
</script>
</body>
</html>
